<?php
	class Article_model extends CI_Model {
		public $table_name="article";
   
    public function get_lastest($limit,$type)
    {
        $notice=$this->db->where('type',$type)->order_by("id","asc")->limit($limit)->get($this->table_name);
        return $notice->result();
    }
    
}
    
